#include<iostream>
#include<string.h>
using namespace std;

int main(){
    char str[30];
    int len = 0;
    cout << "Enter the String: ";
    cin.getline(str, 30);
    int i = 0;
    while(str[i] != '\0'){
        len++;
        i++;
    }
    cout << "The Length of the String: " << len;
    for(int i = 0, j = len-1; i <= len/2; i++, j--){
        if(str[i] != str[j]){
            goto no;
        }
        goto yes;
    }
    no:
        cout << "\nNot Palindrome";
        return 0;
    yes:
        cout << "\nPalindrome";
        return 0;
}